package com.zkingsoft.web.dao;

import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
import com.matrix.core.pojo.PaginationVO;
import com.zkingsoft.web.bean.ProductAttrDef;

/**
 * @description (产品属性定义)
 * @author 姜友瑶
 * @date 2018-12-12 13:44
 */
public interface ProductAttrDefDao{

	public int insert(@Param("item") ProductAttrDef productAttrDef);
   	
   	public int batchInsert(@Param("list") List<ProductAttrDef> productAttrDefList);
   	
	public int updateByMap(Map<String, Object> modifyMap);
	
	public int updateByModel(@Param("record")ProductAttrDef productAttrDef);
	
	public int deleteByIds(@Param("list") List<String> list);
	
	public int deleteById(String id);

	public int deleteByModel(@Param("record") ProductAttrDef productAttrDef);
	
	public List<ProductAttrDef> selectInPage(@Param("record") ProductAttrDef productAttrDef, @Param("pageVo") PaginationVO pageVo);

	public List<ProductAttrDef> selectByModel(@Param("record") ProductAttrDef productAttrDef);
	
	public int selectTotalRecord(@Param("record") ProductAttrDef productAttrDef);
	
	public ProductAttrDef  selectById(String id);
	
	public ProductAttrDef  selectForUpdate(String id);

	public ProductAttrDef selectByCode(String code);

	public ProductAttrDef selectByCode(@Param("code")String code, @Param("companyId")String companyId);

	public List<ProductAttrDef> selectByIds(@Param("list") List<String> skuIds);
	
}